<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
    </head>
    <body>


            <?php   
            @mysql_connect("localhost", "root", "") or die("Loisql ");
            @mysql_select_db("demo") or die("Loi cmnr");
            ?>
            <table align="center" border="1" width="450">
                <tr align="center"> 
                    <td>Mã KH </td>
                    <td>Tên KH</td>
                    <td>Địa chỉ</td>
                </tr>
			
                <?php  
				$result= mysql_query("select * from khachhang"); 
                while($row = mysql_fetch_array($result))
                {  
					echo "<tr>                    
							<td>".$row['maKH']."</td>
							<td>".$row['tenKH']."</td>
							<td>".$row['diaChi']."</td>
						</tr>";
				}
               ?> 
               
            </table>
    </body> 
</html>
